#include "afxmt.h"
#include "MyLock.h"

MyLock::MyLock(CCriticalSection *cs) {
	this->cs = cs;
	cs->Lock();
	//printf("==================mylock");
	OutputDebugString(_T("==================mylock"));
}
MyLock::~MyLock() {
	cs->Unlock();
	//printf("==================myunlock");
	OutputDebugString(_T("==================myunlock"));
}

